<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 1.普通的input输入框 -->
        账号：<input type="text" v-model="val"><br>
        密码：<input type="text" v-model="val1"><br>
        性别：
        <input type="radio" v-model="sex" value="男">男
        <input type="radio" v-model="sex" value="女">女<br>
        爱好:
        <input type="checkbox" v-model="xue" value="学习">学习
        <input type="checkbox" v-model="xue" value="运动">运动
        <input type="checkbox" v-model="xue" value="游戏">游戏<br>

        <select name="job" id="" v-model="job">
            <option value="">--请选择--</option>
            <option value="web">--web--</option>
            <option value="php">--php--</option>
            <option value="java">--java--</option>
        </select>
        <button @click="fn">获取数据</button>
    </div>

    <script>
        new Vue({
            el: "#app",
            data: {
                val: "",
                val1: "",
                sex: '',
                xue: [],
                job:''
            },
            methods: {
                fn() {
                    console.log([this.val, this.val1, this.sex, this.xue,this.job]);

                }
            }
        })
    </script>
</body>

</html>